package containers;

import java.util.AbstractList;

/**
 * @Author: Simune
 * @Description:
 * @Date: Create on 3:33 PM 4/14/18
 * @Modified By:
 */
public class CountingIntegerList extends AbstractList<Integer> {
    private int size;
    public CountingIntegerList(int size){
        this.size = size < 0 ? 0:size;
    }
    public Integer get(int index){
        return Integer.valueOf(index);
    }

    public int size() {return  size;}

    public static void main(String[] args){
        System.out.println(new CountingIntegerList(30));
    }
}
